x86/mm: partially revert 21093:4a3e131f7498
authorTim Deegan <Tim.Deegan@citrix.com>
Wed, 16 Feb 2011 09:47:37 +0000 (09:47 +0000)
committerTim Deegan <Tim.Deegan@citrix.com>
Wed, 16 Feb 2011 09:47:37 +0000 (09:47 +0000)
commitb58852fcd8b447ed5bef3a6c7c0476454ade0b16
tree9e39dd1ec8ebf3e9759e0a57df97f35aeae39830
parent73b16b07cac58fbadffbb5a364f591ea30a5086c
x86/mm: partially revert 21093:4a3e131f7498

p2m internals should always gate on whether HAP is enabled for the
domain, not whether a HAP paging mode is currently advertised.
This lets us revert the change to hap_enable() that advertises the
new mode before it's safe to use it.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen/arch/x86/mm/hap/hap.c
xen/arch/x86/mm/p2m.c